#ifndef DATETIMEPICKERDIALOG_H
#define DATETIMEPICKERDIALOG_H

#include <QDialog>
#include <QDate>

namespace Ui {
class DateTimePickerDialog;
}

class DateTimePickerDialog : public QDialog
{
    Q_OBJECT

public:
    explicit DateTimePickerDialog(QWidget *parent = 0);
    ~DateTimePickerDialog();

    void setType(int nType=0);

    QString GetDateTime();

private slots:
    void on_hours_sliderMoved(int position);

    void on_minutes_sliderMoved(int position);

    void on_calendarWidget_clicked(const QDate &date);

    void on_pushButton_clicked();

    void on_Second_sliderMoved(int position);

    void on_btn_Reset_clicked();

    void on_btn_today_clicked();

    void on_ck_time_show_clicked();

    void on_spinBox_Hours_valueChanged(int arg1);

    void on_spinBox_Minutes_valueChanged(int arg1);

    void on_spinBox_Second_valueChanged(int arg1);

private:
    Ui::DateTimePickerDialog *ui;
    QString hourPattern;
    QString dateTime;
    QString date;
    QString time;
};

#endif // DATETIMEPICKERDIALOG_H
